<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文件上传-编辑</title>
    <script src="/scripts/vue.js"></script>
    <script src="/scripts//axios.min.js"></script>
    <script src="/scripts/heyui/heyui.js"></script>

    <script src="//cdn.jsdelivr.net/npm/sortablejs@1.8.4/Sortable.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/Vue.Draggable/2.20.0/vuedraggable.umd.min.js"></script>

    <link rel="stylesheet" href="/scripts/heyui/css/heyui.blue.theme.css">
    <link rel="stylesheet" href="/styles/global.css">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_2024630_5pfup58gnm.css">
    <script src="/scripts/lib.js"></script>

    <script src="https://cdn.bootcdn.net/ajax/libs/moment.js/2.9.0/moment.min.js"></script>
</head>

<style type="text/css">

</style>

<body>
    <div id="app">
        <image-list v-model="imgs" help-text="建议尺寸100*100,比例:1:1"></image-list>
        <h-button @click="submit">提交</h-button>
    </div>
</body>

</html>

<script>
    new Vue({
        el: "#app",
        data: {
            imgs: "",
            loading: true
        },
        methods: {
            submit() {
                console.log("提交保存");
                console.log(this.imgs);
            },
            open() {
                this.$uploaderManage({
                    multiple: 3
                }, function (src) {
                    console.log(src);
                });
            }
        },
        mounted() {
            var startDate = moment('2020-08-01');
            var endDate = moment('2020-08-31');
            console.log(startDate);

            //得到天数
            var dyas = endDate.diff(startDate, 'days');

            console.log(dyas);

            //得到周 weeks
            var weeks = endDate.diff(startDate, 'weeks',true);

            console.log(weeks);

        },

    })
</script>